package com.virtualmall.common;

public class Constants {
    /**
     * session中存放userId的key,以验证用户是否登录
     */
    public static final String USER_ID_SESSION = "userId";
    /**
     * session中存放user对象的key
     */
    public static final String USER_ACCOUNT_SESSION = "userAccount";
    /**
     * session中存放user上次登录时间
     */
    public static final String USER_LAST_LOGIN_DATE = "lastLoginDate";
    /**
     * 上传图片时存放图片的临时目录
     */
    public static final String PHOTO_DIRECTORY = "/file/productPicture";
    /**
     * 结果标志，成功
     */
    public static final String SUCCESS_RESULT_FLAG = "success";
    /**
     * 结果标志，失败
     */
    public static final String FAILURE_RESULT_FLAG = "failure";
    /**
     * 账户类型，买家
     */
    public static final String ACCOUNT_TYPE_CUSTOMER = "1";
    /**
     * 账户类型，卖家
     */
    public static final String ACCOUNT_TYPE_MERCHANT= "2";
    /**
     * 账户类型，客服
     */
    public static final String ACCOUNT_TYPE_CUSTOMER_SERVICE = "3";
    /**
     * 账户状态，离线
     */
    public static final String ACCOUNT_STATUS_OFFLINE = "0";
    /**
     * 账户状态，在线
     */
    public static final String ACCOUNT_STATUS_ONLINE = "1";
}
